package com.ruoyi.system.service.construction.strategy.impl;

import com.ruoyi.system.domain.construction.strategy.ConstructionStrategyCase;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;
import com.ruoyi.system.mapper.construction.strategy.ConstructionStrategyCaseMapper;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.SupplierInfoMapper;
import com.ruoyi.system.service.construction.strategy.ConstructionStrategyCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 施工攻略案例说明Service业务层处理
 * 
 * @author zhangshaocong
 * @date 2020-12-03
 */
@Service
public class ConstructionStrategyCaseServiceImpl implements ConstructionStrategyCaseService
{
    @Autowired
    private ConstructionStrategyCaseMapper constructionStrategyCaseMapper;


    /**
     * 查询施工攻略案例说明
     * 
     * @param strategyCaseId 施工攻略案例说明ID
     * @return 施工攻略案例说明
     */
    @Override
    public ConstructionStrategyCase selectConstructionStrategyCaseById(Long strategyCaseId)
    {
        return constructionStrategyCaseMapper.selectConstructionStrategyCaseById(strategyCaseId);
    }

    /**
     * 查询施工攻略案例说明列表
     * 
     * @param constructionStrategyCase 施工攻略案例说明
     * @return 施工攻略案例说明
     */
    @Override
    public List<ConstructionStrategyCase> selectConstructionStrategyCaseList(ConstructionStrategyCase constructionStrategyCase)
    {
        return constructionStrategyCaseMapper.selectConstructionStrategyCaseList(constructionStrategyCase);
    }

    /**
     * 新增施工攻略案例说明
     * 
     * @param constructionStrategyCase 施工攻略案例说明
     * @return 结果
     */
    @Override
    public int insertConstructionStrategyCase(ConstructionStrategyCase constructionStrategyCase)
    {
        return constructionStrategyCaseMapper.insertConstructionStrategyCase(constructionStrategyCase);
    }

    /**
     * 修改施工攻略案例说明
     * 
     * @param constructionStrategyCase 施工攻略案例说明
     * @return 结果
     */
    @Override
    public int updateConstructionStrategyCase(ConstructionStrategyCase constructionStrategyCase)
    {
        return constructionStrategyCaseMapper.updateConstructionStrategyCase(constructionStrategyCase);
    }

    /**
     * 批量删除施工攻略案例说明
     * 
     * @param strategyCaseIds 需要删除的施工攻略案例说明ID
     * @return 结果
     */
    @Override
    public int deleteConstructionStrategyCaseByIds(Long[] strategyCaseIds)
    {
        return constructionStrategyCaseMapper.deleteConstructionStrategyCaseByIds(strategyCaseIds);
    }

    /**
     * 删除施工攻略案例说明信息
     * 
     * @param strategyCaseId 施工攻略案例说明ID
     * @return 结果
     */
    @Override
    public int deleteConstructionStrategyCaseById(Long strategyCaseId)
    {
        return constructionStrategyCaseMapper.deleteConstructionStrategyCaseById(strategyCaseId);
    }
}
